<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.flying.dcss.app.SessionName"%>
<%@page import="com.flying.dcss.userpermissions.bo.impl.DcssUser"%>

<%
	DcssUser user = (DcssUser) session
			.getAttribute(SessionName.UserSession);
%>
<html>
	<head>
		<link rel="stylesheet" href="style/css6.css" />
	</head>
	<body>
		<div class="contentcontainer">
			<dl>
				<dt>
					门禁授权申请表：
				</dt>

			</dl>
			<input type="button" id="currentUserId" value="<%=user.getId()%>"
				style="display: none"></input>
			<p class="part">
				<label for="smallbox" class="exp">
					城市：
				</label>
				<select name="" id="citySelect"
					onchange="getBuildingInfo(this.options[this.selectedIndex].value);"
					class="sel">
					<option>无相关信息</option>
					</select>
			</p>
			<p class="part">
				<label for="smallbox" class="exp">
					建筑名：
				</label>
				<select name="" class="sel" id="buildingSelect"
					onchange="getFloorInfo(this.options[this.selectedIndex].value);">
					<option>请先选择前置条件</option></select>
			</p>
			<p class="part">
				<label for="smallbox" class="exp">
					楼层：
				</label>
				<select name="" id="floorSelect" class="sel"
					onchange="getDCInfoSelect(this.options[this.selectedIndex].value);"><option>请先选择前置条件</option></select>
			</p>

			<p class="part">
				<label for="smallbox" class="exp">
					申请门禁：
				</label>
				<select name="" class="sel" id="dcSelect" style="width: 150px"
					onFocus="this.style.width='auto'" onblur="this.style.width='150px'"
					onchange="managerAutoCompl(this.options[this.selectedIndex].value);this.style.width='150px';"><option>请先选择前置条件</option></select>
			</p>

			<p class="part">
				<label for="smallbox" class="exp">
					申请理由：
				</label>
				<input name="" type="text" class="inputbox smallbox" id="reason" />
			</p>

			<br />

			<p class="part">
				<label for="smallbox" class="exp">
					有效期至：
				</label>
				<input type="text" readonly="readonly" class="inputbox smallbox"
					id="deadline" onfocus="setday(this)" />
			</p>

			<p class="part">
				<label for="smallbox" class="exp">
					审批人：
				</label>
				<input name="" type="text" class="inputbox smallbox" id="approver" />
			</p>
			<br />

			<p class="part">
				<input name="" type="button" value="提交申请" class="btn"
					onclick="createOrder();"
					style="position: absolute; top: 340px; left: 950px;" />
			</p>
			<br />
		</div>
		<script language="javascript" type="text/javascript">
getCityInfo();
var hl = document.getElementById("high1");
hl.setAttribute("id", "active2");
</script>

	</body>
</html>